package com.health.platform.provider.hygieneemergency.controller;

import com.health.platform.common.core.entity.BaseQueryEntity;
import com.health.platform.common.restful.AppResponse;
import com.health.platform.provider.hygieneemergency.serivce.HygieneEmeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>卫生应急Controller</p>
 * <p>创建日期：2021-02-27</p>
 *
 * @author zhou-qf
 */
@RestController
@RequestMapping("/hygieneEme")
public class HygieneEmeController {

    @Autowired
    private HygieneEmeService hygieneEmeService;

    /**
     * 获取汇总信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("getSummary")
    public AppResponse getSummary(@RequestBody BaseQueryEntity baseQueryEntity){
        return hygieneEmeService.getSummary(baseQueryEntity);
    }

    /**
     * 获取血液库存信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("getBloodStock")
    public AppResponse getBloodStock(@RequestBody BaseQueryEntity baseQueryEntity){
        return hygieneEmeService.getBloodStock(baseQueryEntity);
    }

    /**
     * 获取应急物资列表信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("getEmeMaterial")
    public AppResponse getEmeMaterial(@RequestBody BaseQueryEntity baseQueryEntity){
        return hygieneEmeService.getEmeMaterial(baseQueryEntity);
    }

    /**
     * 获取急救车辆列表信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("getEmeCar")
    public AppResponse getEmeCar(@RequestBody BaseQueryEntity baseQueryEntity){
        return hygieneEmeService.getEmeCar(baseQueryEntity);
    }

    /**
     * 获取床位管理列表信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("getBedNum")
    public AppResponse getBedNum(@RequestBody BaseQueryEntity baseQueryEntity){
        return hygieneEmeService.getBedNum(baseQueryEntity);
    }
}
